package com.itheima.movement.mapper;

import com.itheima.entity.pojo.Movement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author :wujunjie
 * createTime :2022-12-22 15:41
 * description :
 */
@Mapper
public interface MovementMapper {

    Boolean insertMovement(@Param("movement") Movement movement);

    List<Movement> selectAllPage(@Param("userId") String userId,@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    Integer countPage();



    Boolean updateMovementById(@Param("movement") Movement movement);

}
